<?php /* Smarty version Smarty-3.1.18, created on 2015-12-10 15:02:50
         compiled from "/Applications/MAMP/htdocs/yfqiaqia/Admin/View/Menu/menu_list.html" */ ?>
<?php /*%%SmartyHeaderCode:16792737175669239a1a7be5-72310541%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a5ff0b8dfe9bbc85bc6891afdf3a49007db0e58b' => 
    array (
      0 => '/Applications/MAMP/htdocs/yfqiaqia/Admin/View/Menu/menu_list.html',
      1 => 1445500843,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '16792737175669239a1a7be5-72310541',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    '_C' => 0,
    'menu_list' => 0,
    'menu' => 0,
    'menu_page' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5669239a3db1a5_29042517',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5669239a3db1a5_29042517')) {function content_5669239a3db1a5_29042517($_smarty_tpl) {?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
	</head>
	<body>
		<div class="am-g">
			 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
              <button data-id="addmenu" data-href="index.php?g=admin&m=menu&a=add_menu" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 新建栏目</button>
             <!--   <button  type="button" class="am-btn am-btn-default hy-js-delall"><span class="am-icon-trash-o"></span> 删除</button>-->
            </div>
             <div class="am-form-group am-margin-left am-fl">
              
            </div>
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
          <!--<div class="am-input-group am-input-group-sm">
            <input type="text" class="am-form-field">
                <span class="am-input-group-btn">
                  <button class="am-btn am-btn-default" type="button">搜索</button>
                </span>
          </div>-->
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-check"></th>
                <th class="table-id">ID</th>
                <th class="table-title">标题</th>
                <th class="table-type">类别</th>
                <th width="80px" class="table-author">排序</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	<?php  $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['menu']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['menu_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) {
$_smarty_tpl->tpl_vars['menu']->_loop = true;
?>
            <tr>
              <td></td>
              <td><?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
</td>
              <td><a href="#"><?php echo $_smarty_tpl->tpl_vars['menu']->value['name'];?>
</a></td>
              <td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['menu']->value['cat_type'])===null||$tmp==='' ? "其他模块" : $tmp);?>
</td>
              <td><input class="hy-js-order hy-w-50" data-id="<?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
" data-action="ordering" type="text"  value="<?php echo $_smarty_tpl->tpl_vars['menu']->value['ordering'];?>
" /></td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <button data-id="editmenu_<?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
" data-href="index.php?g=admin&m=menu&a=edit_menu&id=<?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
" data-title="<?php echo $_smarty_tpl->tpl_vars['menu']->value['name'];?>
" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
                   <?php if ($_smarty_tpl->tpl_vars['menu']->value['type']>0) {?> <a data-id="addcontent_<?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
" <?php if ($_smarty_tpl->tpl_vars['menu']->value['type']==3) {?>data-href="index.php?g=admin&m=article&a=page&c=<?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
" <?php } elseif ($_smarty_tpl->tpl_vars['menu']->value['type']==4) {?>data-href="index.php?g=admin&m=goods&a=goodslist&c=<?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
" <?php } else { ?>data-href="index.php?g=admin&m=article&a=index&c=<?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
"<?php }?> data-title="添加_<?php echo $_smarty_tpl->tpl_vars['menu']->value['name'];?>
" href="javascript:;" class="am-btn am-btn-default am-btn-xs hy-js-href"><span class="am-icon-copy"></span> 添加内容</a><?php }?>
                    <button data-param ="{ url:'index.php?g=admin&m=menu&a=del&id=<?php echo $_smarty_tpl->tpl_vars['menu']->value['id'];?>
',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                  </div>
                </div>
              </td>
            </tr>
             <?php } ?> 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
   <?php echo $_smarty_tpl->tpl_vars['menu_page']->value;?>

  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	</body>
</html>
<?php }} ?>
